package com.gem.day5;

public class Hospital {
//	public void cure(Dog dog){
//		dog.setHealth(65);
//		System.out.println(dog.getpName()+" have restored health!!");
//	}
//	public void cure(Cat cat){
//		cat.setHealth(65);
//		System.out.println(cat.getpName()+" have restored health!!");
//	}
	public void cure(Pet pet){
		pet.setHealth(65);
		System.out.println(pet.getpName()+" have restored health!!");
	}
}
